package vn.orderonline.core.dao.entity;

import java.sql.Timestamp;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "RESTAURANT_MENU_DRINK")
public class RestaurantMenuDrink {

	private RestaurantMenuDrinkId id;
	private Timestamp createTime;
	
	public RestaurantMenuDrink() {
		
	}

	@EmbeddedId
	@AttributeOverrides({
		@AttributeOverride(name = "restaurantId", column = @Column(name = "RESTAURANT_ID")),
		@AttributeOverride(name = "menuDrinkId", column = @Column(name = "MENU_DRINK_ID")) })
	public RestaurantMenuDrinkId getId() {
		return id;
	}

	public void setId(RestaurantMenuDrinkId id) {
		this.id = id;
	}

	@Column(name = "CREATE_TIME", nullable = false)
	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}
	
}
